<?php
if (isset($error_message) && is_array($error_message) && $error_message !== false) {
    print "<h4 class='alert_error'>ERROR</h4>";
}
?>
<article class="module width_full"> <!-- start of article -->
    <header><h3>Manage users</h3></header>
    <div class="module_content">

        <?php
        $this->pageTitle = Yii::app()->name . ' - manage users';
        $this->breadcrumbs = array(
            'Manage',
        );

        $this->widget('zii.widgets.grid.CGridView', array(
            'dataProvider' => $model->search(),
            'filter' => $model,
            'nullDisplay' => "[N/A]",
            'showTableOnEmpty' => true,
            'columns' => array(
                array(
                    'name' => 'firstname',
                    'type' => 'raw',
                ),
                array(
                    'name' => 'lastname',
                    'type' => 'raw',
                ),
                array(
                    'name' => 'username',
                    'type' => 'raw',
                ),
                array(
                    'name' => 'locked',
                    'type' => 'raw',
                ),
                array(
                    'name' => 'login_ip',
                    'type' => 'raw',
                ),
                array(
                    'name' => 'last_login',
                    'type' => 'datetime',
                ),
                array(
                    'header' => 'Action',
                    'class' => 'CButtonColumn',
                ),
            ),
        ));
        ?>

    </div>
</article><!-- end of article -->